package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.dto.SetmealDto;
import com.itheima.reggie.mapper.SetmealMapper;
import com.itheima.reggie.pojo.Setmeal;
import com.itheima.reggie.pojo.SetmealDish;

public interface SetmealService extends IService<Setmeal> {
    //新增菜品
    void saveWithDish(SetmealDto setmealDto);
    //分页查询
    R<Page<SetmealDto>> pageWithDish(Integer page,Integer pageSize,String name);
    //删除操作
    void deleteWithDish(Long [] ids);
    //停售
    void updateStatus(Integer status,Long [] ids);
    //修改信息
    void updateWithDish(SetmealDto setmealDto);
    //修改数据回显
    SetmealDto getByIdWithDish(Long id);
}
